import request from '@/utils/request';

// 查询用户浏览足迹列表
export function listFootprint(query) {
	return request({
		url: '/mall/footprint/list',
		method: 'post',
		data: query,
	});
}

// 查询用户浏览足迹详细
export function getFootprint(id) {
	return request({
		url: '/mall/footprint/getInfo',
		method: 'post',
		data: { id: id },
	});
}

// 新增用户浏览足迹
export function addFootprint(data) {
	return request({
		url: '/mall/footprint/add',
		method: 'post',
		data: data,
	});
}

// 编辑用户浏览足迹
export function updateFootprint(data) {
	return request({
		url: '/mall/footprint/edit',
		method: 'post',
		data: data,
	});
}

// 删除用户浏览足迹
export function delFootprint(id) {
	return request({
		url: '/mall/footprint/remove',
		method: 'post',
		data: { id: id },
	});
}

// 导出用户浏览足迹
export function exportFootprint(query) {
	return request({
		url: '/mall/footprint/export',
		method: 'post',
		params: query,
	});
}
